home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 19
/
CU Amiga Magazine's Super CD-ROM 19 (1998)(EMAP Images)(GB)[!][issue 1998-02].iso
/
CUCD
/
Programming
/
LEDA
/
prog
/
basic
/
stream.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-08-05
|
418b
|
34 lines
#include <LEDA/basic.h>
#include <LEDA/stream.h>
#include <LEDA/list.h>
main(int argc, char* argv[])
{
string_istream args(argc,argv);
list<string> L;
string s;
while(args >> s) cout << s << "\n";
newline;
cmd_istream IN(read_string("cmd = "));
while (IN) L.append(read_line(IN));
L.print('\n');
newline;
cmd_ostream OUT("more");
L.print(OUT,'\n');
OUT.flush();
return 0;
}